import 'babel-polyfill'
import 'amfe-flexible'
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import vant from 'vant'
import 'vant/lib/index.css';
import VueLazyload from 'vue-lazyload'
import animated from 'animate.css'
// 生产二维码
import VueClipboard from 'vue-clipboard2'
// BaseComponent
import BaseComponent from '@/install'
// 引入融云
import imsocket from "@/utils/imsocket";

Vue.use(VueClipboard);
Vue.use(vant)
Vue.use(animated)
Vue.use(VueLazyload, {
  preLoad: 1.3,
  error: require('@/assets/images/error.png'),
  loading: require('@/assets/images/loading.gif'),
  attempt: 1
});
Vue.use(imsocket, store, router);
Vue.use(BaseComponent)

Vue.config.productionTip = false

let vm = new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
export default vm
